Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    title:{
      type:String,
      value:''
    },
    name1:{
      type:String,
      value:''
    },
    name2:{
      type:String,
      value:''
    }
  },
  data: {
    selectedType:'type1'
  },
  methods: {
    onTypeSelect(e) {
      this.setData({selectedType:e.target.dataset.type});
      this.triggerEvent('select_type',{title:this.properties.title,type:this.data.selectedType});
    }
  }
})
